<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>代金卷添加</h2>
    </div>
    <form action="{:U('FuturesVoucher/add')}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">代金卷名称<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="name" value=""><span style = "color:red;">*</span>
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">代金卷金额<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="money" value=""><span style = "color:red;">*</span><span>(元)</span>
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">每人领取次数限制<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="person_limit" value=""><span>(注：如果未编辑默认为1次)</span>
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">开始时间<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" id="begin_time" class="text input-large" name="begin_time" value=""><span>(注：如果未编辑默认为3天)</span>
            </div>
        </div>
         <div class="form-item">
            <label class="item-label">结束时间<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" id="end_time" class="text input-large" name="end_time" value=""><span style = "color:red;">*</span>
            </div>
        </div>
        <div class="form-item">
        	<input type = "submit" value = "确定" class="btn submit-btn"/>
            
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">';</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css?v={:SITE_VERSION}" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js?v={:SITE_VERSION}" charset="UTF-8"></script>
<script type="text/javascript">
        $('#begin_time,#end_time').datetimepicker({
            format: 'yyyy-mm-dd h:i:s',
            language:"zh-CN",
            minView:2,
            autoclose:true,
        });
        //导航高亮
        $('.side-sub-menu').find('a[href="{:U('FuturesVoucher/index')}"]').closest('li').addClass('current');
    </script>
</block>
